package com.zy.dao;

import com.zy.pojo.Employee;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: xiaoqi
 * Date: 2021/5/31
 * Time: 下午 16:27
 * Description: 员工持久层层接口
 */
public interface EmployeeDao {
    Integer insertEmployee(Employee employee);

    Integer deleteEmployeeById(Integer id);

    Integer updateEmployee(Employee employee);

    List<Employee> getEmployeeList(Integer start, Integer end, Employee employee);

    Employee getEmployeeById(Integer id);

    Integer getEmployeeCountByName(String name);

    Employee getEmployeeByNameAndPassword(String name, String password);

    Integer getEmployeeCount(Employee employee);
}
